<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>
		Home
	</title>


	<link rel="StyleSheet" href="<?=base_url();?>CSS/stylesheet-site.css" type="text/css">
	<link rel="StyleSheet" href="<?=base_url();?>CSS/stylesheet-calendar.css" type="text/css">
	<link rel="StyleSheet" href="<?=base_url();?>CSS/stylesheet-plugins.css" type="text/css">

</head>
<body>
  <div id="main_wrapper">


	<!--logobar start-->
	<div id="logobar">

		<!--topbar start-->
		<script type="text/javascript">
var tn_query = window.location.search.replace('?','&') +"&";
var tn_ppc_src_start = tn_query.indexOf("&ppcsrc=") + 8;
if(tn_ppc_src_start  != 7)
{
	var tn_ppc_src =tn_query.substring(tn_ppc_src_start, tn_query.indexOf('&',tn_ppc_src_start)).replace(/;/g,'');
	var tn_expDate = new Date();
	tn_expDate.setDate(tn_expDate.getDate()+1);
	document.cookie = "tn_ppc_src="+tn_ppc_src +"; expires="+tn_expDate.toGMTString()+"; path=/";
}
</script>

		<div id="topbar_links">
		    <?php if($tipo_usuario == FALSE):?>
			<a href="<?=site_url()?>/cliente/cadastro"><h2>Cadastrar</a> |
			<a href="<?=site_url()?>/home/login">Entrar</h2></a>
		    <?php else:?>
			<a href="<?=site_url()?>/home/logoff"><h2>Sair</h2></a>
		    <?php endif;?>
			
		</div>

		<!--topbar end-->


		<div id="search">
			<input name="SearchBox" onkeypress="KeyPressedSearch(window.event)" id="SearchBox" value="Search Tickets" type="text">
			<div id="searchBtn">
				<a href="#" onclick="NavigateSearch();">
				</a>
			</div>
			<script language="JavaScript">
				<!--
						document.getElementById('SearchBox').onkeypress = KeyPressedSearch;
						function NavigateSearch()
						{
							var kwds = document.getElementById('SearchBox').value;
							if (kwds == "" || kwds == "Search Tickets") return;

							window.location = "ResultsGeneral.aspx?stype=0&kwds=" + escape(kwds);
						}
						function KeyPressedSearch(e)
						{
							if (e == null) e = window.event;
							if (e.keyCode == 13)
								NavigateSearch();
						}

						document.getElementById('SearchBox').onclick = ClearSearchBox;

						function ClearSearchBox(e)
						{
							if(document.getElementById('SearchBox').value == 'Search Tickets')
							{
								document.getElementById('SearchBox').value = '';
							}
						}
					//
			</script>
		</div>

		<div id="logobar_logo_area">
			<a href="#">
				<img src="<?=base_url();?>imgs/fast_logo.jpg">
			</a>
		</div>
	</div>
	<!--logobar end-->


<!-- Menu bar start -->
    <div id="menubar">
		<ul id="navigation">
			<li>
				<a href="<?=base_url();?>">
					PAGINA INICIAL
				</a>
			</li>
			<li>
				<a href="<?=base_url();?>evento/todos">
					EVENTS
				</a>
			</li>
		</ul>
	</div>
	<!-- Menu bar end-->


    <div id="center_content">


	<!--sidebar start-->
		<div id="sidebar_left">
		<div class="areabox">
	<div id="sidebar_topten">

	    <?php if($tipo_usuario == 'administrador'):?>
		<h4 class="maroonTitleLg">MENU ADMIN</h4>

		<br>
		<table class="tn_selevents_list" cellpadding="0" cellspacing="0"><tbody><tr class="tn_selevents_list">

		    <td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
		    <td class="tn_selevents_list"><a target="_self" href="<?=site_url('funcionario/cadastro');?>">Cadastro de Funcionario</a></td></tr><tr class="tn_selevents_list">
		    <td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
		    <td class="tn_selevents_list"><a target="_self" href="<?=site_url('local/cadastro');?>">Cadastro de Local</a></td></tr><tr class="tn_selevents_list">
		    <td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
		    <td class="tn_selevents_list"><a target="_self" href="<?=site_url('evento/cadastro');?>">Cadastro de Evento</a></td></tr><tr class="tn_selevents_list">
		    <td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
		    <td class="tn_selevents_list"><a target="_self" href="<?=site_url('evento/add_lote');?>">Cadastro de Lote</a></td></tr><tr class="tn_selevents_list">
		

		</tbody></table>
	    <?php else:?>

		<h4 class="maroonTitleLg">TOP EVENTS</h4>

		<br>
		<table class="tn_selevents_list" cellpadding="0" cellspacing="0"><tbody><tr class="tn_selevents_list">
			    <?php $q=$this->db->query('SELECT id_evento,nome FROM evento ORDER BY id_evento DESC LIMIT 10'); foreach($q->result() as $e):?>
				<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
				<td class="tn_selevents_list"><a target="_self" href="<?=site_url();?>/evento/ver/<?=$e->id_evento;?>"><?=$e->nome;?></a></td></tr><tr class="tn_selevents_list">
			    <?php endforeach;?>
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsGeneral.aspx?kwds=New+York+Yankees">New York Yankees</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsGeneral.aspx?kwds=Chicago+Cubs">Chicago Cubs</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsGeneral.aspx?kwds=NASCAR">NASCAR</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsEvent.aspx?event=Elton+John">Elton John</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsEvent.aspx?event=Wicked">Wicked</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsEvent.aspx?event=Monty+Python%27s+Spamalot">Monty Python's Spamalot</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsEvent.aspx?event=Lion+King">Lion King</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsEvent.aspx?event=Blue+Man+Group">Blue Man Group</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsEvent.aspx?event=Super+Bowl+XL">Super Bowl XL</a></td></tr><tr class="tn_selevents_list">
								<td class="tn_selevents_list"><img class="tn_selevents_list_bullet" src="<?=base_url();?>imgs/tn_selevents_list_bullet.gif"></td>
								<td class="tn_selevents_list"><a target="_self" href="http://site_01929_032.ticketsoftware.net/ResultsVenue.aspx?venid=33&amp;vname=Madison+Square+Garden">Madison Square Garden</a></td></tr></tbody></table>
		<?php endif;?>
	</div>
	</div>




	<div id="sidebar_links">
	<table class="sidelinks" border="0" cellpadding="0" cellspacing="0">
<tbody><tr valign="middle">
	<td align="center">
	<a href="http://www.americanexpress.com/cards/online_guarantee/" target="_blank">
	<img src="<?=base_url();?>imgs/img_fraud_protec_logo.gif" alt="Amex Fraud Protection" border="0" height="45" width="110"></a>
	</td>
	</tr>

	<tr valign="middle">
	<td align="center">
	<a href="#" target="_blank">
	<img src="<?=base_url();?>imgs/visa_logo2.jpg" alt="Visa" border="0" height="45" width="110"></a>
	</td>
	</tr>

	<tr valign="middle">
	<td align="center">
	<a href="#" target="_blank">
	<img src="<?=base_url();?>imgs/master_logo.jpg" alt="Visa" border="0" height="45" width="110"></a>
	</td>
	</tr>

</tbody></table>

	</div>
</div>
<!--sidebar end-->		